package ru.amse.tsyganov.jumleditor.view.lines;

import ru.amse.tsyganov.jumleditor.view.ConnectionPoint;

public class HorizontalFromConnectionPointLine extends FromConnectionPointLine {
	
	public HorizontalFromConnectionPointLine(ConnectionPoint p, int cord) {
		super(p, cord);
	}

	public int getX2() {
		return getCoordinate();
	}

	public int getY2() {
		return getConnectionPoint().getCpY();
	}

	public void setX2(int x2) {
		setCoordinate(x2);
	}

	public void setY2(int y2) {
		throw new UnsupportedOperationException();
	}

	public boolean isHorizontal() {
		return true;
	}

}
